package com.ruoyi.journal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.journal.mapper.BfxPaymentMapper;
import com.ruoyi.journal.domain.BfxPayment;
import com.ruoyi.journal.service.IBfxPaymentService;

/**
 * 结算部门表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-25
 */
@Service
public class BfxPaymentServiceImpl implements IBfxPaymentService 
{
    @Autowired
    private BfxPaymentMapper bfxPaymentMapper;

    /**
     * 查询结算部门表
     * 
     * @param id 结算部门表主键
     * @return 结算部门表
     */
    @Override
    public BfxPayment selectBfxPaymentById(Long id)
    {
        return bfxPaymentMapper.selectBfxPaymentById(id);
    }

    /**
     * 查询结算部门表列表
     * 
     * @param bfxPayment 结算部门表
     * @return 结算部门表
     */
    @Override
    public List<BfxPayment> selectBfxPaymentList(BfxPayment bfxPayment)
    {
        return bfxPaymentMapper.selectBfxPaymentList(bfxPayment);
    }

    /**
     * 新增结算部门表
     * 
     * @param bfxPayment 结算部门表
     * @return 结果
     */
    @Override
    public int insertBfxPayment(BfxPayment bfxPayment)
    {
        return bfxPaymentMapper.insertBfxPayment(bfxPayment);
    }

    /**
     * 修改结算部门表
     * 
     * @param bfxPayment 结算部门表
     * @return 结果
     */
    @Override
    public int updateBfxPayment(BfxPayment bfxPayment)
    {
        return bfxPaymentMapper.updateBfxPayment(bfxPayment);
    }

    /**
     * 批量删除结算部门表
     * 
     * @param ids 需要删除的结算部门表主键
     * @return 结果
     */
    @Override
    public int deleteBfxPaymentByIds(Long[] ids)
    {
        return bfxPaymentMapper.deleteBfxPaymentByIds(ids);
    }

    /**
     * 删除结算部门表信息
     * 
     * @param id 结算部门表主键
     * @return 结果
     */
    @Override
    public int deleteBfxPaymentById(Long id)
    {
        return bfxPaymentMapper.deleteBfxPaymentById(id);
    }
}
